package demo7.demo1;

import org.springframework.stereotype.Component;

@Component
public class Student2 implements Teacher {
    @Override
    public void hi() {
        System.out.println("我是学生2");
    }
}
